//
//  SYKaoShiTopView.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/7/6.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYLianXiTopView.h"

@implementation SYLianXiTopView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (IBAction)zhengqueluBtnClick:(id)sender {
    UIButton *btn = (UIButton *)sender;
    btn.selected =!btn.selected;
    NSInteger index;
    if (btn.selected == YES) {//倒序
        index = 1;
        self.imagekaoshi.image = [UIImage imageNamed:@"kaoshi_shang"];
    } else {//正序
        index = 2;
        self.imagekaoshi.image = [UIImage imageNamed:@"kaoshi_xiala"];
    }
    if (self.block) {
        self.block(index);
    }
    
}

@end
